﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserDtl.aspx.cs" Inherits="SysManager_UserDtl" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>编辑用户信息</title>
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery/jquery-1.8.1.min.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <link href="../css/btnsty.css" rel="stylesheet" type="text/css" />
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/editform.css" rel="stylesheet" type="text/css" />
    <script src="../js/config.js" type="text/javascript"></script>
    <style>
        
    </style>
    <script type="text/javascript">
        $(function () {
            $("#txtusername").live("change", function () {
                //CheckUserName($("#txtusername").val());
            });
            //保存事件
            $("#btnSave").live("click", function () {
                //                alert($("#txtusercode").text());
                //                if ($("#txtusercode").text() == "") {
                //                    alert("用户编号不能为空！");
                //                    return;
                //                }
                //                if ($("#txtusername").text() == "") {
                //                    alert("用户名称不能为空！");
                //                    return;
                //                }
                //                if ($("#txtpwd").text() == "") {
                //                    alert("用户密码不能为空！");
                //                    return;
                //                }
            });
        });
        function CheckUserName(name) {
            $.post(url_path + "/UserDtl.aspx",
                    { aciton: 'CheckUserName', username: name },
                     function (data) {
                         var msg = $.trim(data);
                         alert(msg);
                         if (msg == "NO_DATA") {
                             $("#nam_msg").hide()
                         } else {
                             $("#nam_msg").show();
                         }
                     });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 96%; height: 100%;">
        <div class="rptTitle">
            <b>用户信息</b>
        </div>
        <div>
            <table class="edit_table">
                <tbody>
                    <tr>
                        <td class="tdl">
                            用户编号：
                        </td>
                        <td>
                            <asp:TextBox ID="txtusercode" class="ipt" runat="server" placeholder="输入用户编号"></asp:TextBox>*
                        </td>
                        <td class="tdl">
                            用户名称：
                        </td>
                        <td>
                            <asp:TextBox ID="txtusername" class="ipt" runat="server" placeholder="输入用户名称"></asp:TextBox>*
                            <label id="nam_msg" style="color: Red; font-size: 9px; display: none">
                                用户重复!</label>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdl">
                            登录密码：
                        </td>
                        <td>
                            <asp:TextBox ID="txtpwd" TextMode="Password" class="ipt" runat="server" placeholder="输入密码"></asp:TextBox>*
                        </td>
                        <td class="tdl">
                            联系电话：
                        </td>
                        <td>
                            <asp:TextBox ID="txtmobile" class="ipt" runat="server" placeholder="输入联系电话"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdl">
                            QQ：
                        </td>
                        <td>
                            <asp:TextBox ID="txtqq" class="ipt" runat="server" placeholder="输入QQ"></asp:TextBox>
                        </td>
                        <td class="tdl">
                            微信号：
                        </td>
                        <td>
                            <asp:TextBox ID="txtweixin" class="ipt" runat="server" placeholder="输入微信号"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdl">
                            状态：
                        </td>
                        <td>
                            <asp:CheckBox ID="chkBlock" runat="server" />
                        </td>
                        <td class="tdl">
                            移动APP：
                        </td>
                        <td>
                            <asp:CheckBox ID="chkapp" runat="server" Width="100" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdl">
                            账号类型
                        </td>
                        <td colspan="3">
                            <asp:DropDownList runat="server" ID="apptype" Width="120">
                                <asp:ListItem Text="公司" Value="0" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="店铺" Value="1"></asp:ListItem>
                                <asp:ListItem Text="加盟商" Value="2"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div style="width: 80%; padding: 10px; background-color: #F3F4F8; border-radius: 4px;">
                注：*为必填项。
            </div>
            <div style="text-align: center; width: 80%; padding-top: 20px;">
                <a class="button small medium-red" href="javascript:history.go(-1)">返回</a>
                <asp:LinkButton ID="btnSave" runat="server" class="button small medium-red" OnClick="btnSave_Click">保存</asp:LinkButton>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
